package com.bruip.ch01;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/22
 * @Description:
 */
interface IFly{
    int num=10;
    void fly();
    public default void eat() {
        System.out.println("I'm eating meat!");
    }
}
abstract class BirdImpl implements IFly{
    public abstract void fly();
}
class Eagle extends BirdImpl{
    public void fly(){
        System.out.println("I'm flying with wings!");
    }
}
public class Test01_inteface7 {
    public static void main(String[] args) {

    }
}
